{include mobile_template('header')}
<link rel="stylesheet" href="{URLROOT}/{$_G[tplurl_mobile]}/css/tuan.css">
<!--{eval $myprice = $detail['status']=='succeeded' ? $detail['real_price'] : $detail['price'];}-->
<div class="atab-box">

    <div class="atab-box-area">

        <ul class="list-group list-group-insertmod">
            <li class="list-group-item tuan-detail-subject">
                <b class="label-big">$detail[subject]</b>&nbsp;{if $detail[mode]!='normal'}<span class="label-comm label-mycolor">{print lang('tuan_mode_'.$detail[mode])}</span>{/if}
            </li>
            <li class="list-group-item list-noborder">
                <div class="fr">
                    <span class="txt-comm txt-small txt-grey">
                        剩余：<span id="stock">{print $detail[goods_total]-$detail[goods_sell]}</span> 件
                    </span>
                </div>
                <b class="txt-red txt-big">&#165;{print get_numeric($myprice)}</b>
                <s class="txt-grey txt-small">&#165;{print get_numeric($detail[market_price])}</s>
            </li>
        </ul>
        <div class="panel-body">
            <a class="btn btn-mycolor block" href="{url tuan/mobile/do/buy/id/$detail[tid]}">立刻购买</a>

            <ul class="list-group mt10 mb10">
                <li class="list-group-item">
                    <div class="fr">{date $detail[endtime],'Y-m-d H:i'}</div>
                    结束时间
                </li>
                <li class="list-group-item">
                    团购详情
                    <div class="richtxt-comm">
                        $detail[content]
                    </div>
                </li>
            </ul>
        </div>

    </div>

</div>
{include mobile_template('footer')}